package handler

import (
	"astgram/common"
	"astgram/service"
	"github.com/gin-gonic/gin"
)

func UploadImage(c *gin.Context) {
	var ss service.UploadImageService
	resp, err := ss.Execute(c)
	if err != nil {
		common.WriteError(c, err)
		return
	}
	c.JSON(200, resp)
}
